import { NgModule, ErrorHandler } from '@angular/core';

import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';

import { IonicStorageModule } from '@ionic/storage';
import { Http, Response, RequestOptions } from '@angular/http';
import { CalendarModule } from "ionic2-calendar2";

// 入口
import { GfoaApp } from './app.component';
// 页面
// import { pageComponents, linkers, providers ,declarations} from './app.page';

import { pages, linkers, providers, pipes, directive } from './app.import';
import {MarketingCreditListPage} from "../pages/marketing/credit/list/list.component";
// import {IonicPageModule} from "ionic-angular/umd";

@NgModule({
  declarations: [...pages, ...pipes, ...directive],
  imports: [
    IonicModule.forRoot(GfoaApp, {
      mode: "ios",
      backButtonText: "返回",
      iconMode: 'ios',
      swipeBackEnabled: false,
      tabsHideOnSubPages: true
      // pageTransition: 'ios'
    }, {
        links: linkers
      }),
    IonicStorageModule.forRoot({
      name: 'gfoa'
    }),
    CalendarModule
    // IonicPageModule.forChild(MarketingCreditListPage)
  ],
  bootstrap: [IonicApp],
  entryComponents: pages,
  providers: providers
})
export class AppModule { }
